# #!/usr/bin/python
# # -*- coding: utf-8 -*-
#
#
#
# class Person(object):
#     # name = None
#     # age = None
#     def __init__(self, name, age):
#         self.name = name
#         self.age = age
#
#     def run(self):
#         print(f'{self.name}在奔跑')
#
#     def jump(self):
#         print(f'{self.name}在跳')
#
#     def work(self):
#         self.run()
#         self.jump()
#         # self.sleep()
#         def sleep(name):
#             return name
#         result = sleep(self.name)
#         print('sleep result is ', result)
#
#
#     def sleep():
#         print('sleep')
#
# xiamu = Person(name = 'xiaomu', age = 10)
# # xiamu.name = '小牧'
# xiamu.jump()
#
#
# dewei = Person(name = 'dewei', age = 10)
# dewei.jump()
#
#
# dewei.top = 174
# print(dewei.top)
# # print(xiamu.top)
# print(dewei.age)
#
#
# xiamu.work()
# # xiamu.sleep()








class Cat(object):
    def __init__(self, name):
        self.name = name

    def run(self):
        result = self.__run()
        print(result)

    def __run(self):
        return f'小猫{self.name}开心的奔跑者'

    def dump(self):
        result = self.__dump()
        print(result)

    def __dump(self):
        return f'小猫{self.name}跳'


class Test(object):
    pass

cat = Cat(name = 'mili')
cat.run()
cat.dump()
print(dir(Cat))
print(cat._Cat__dump())
print(cat._Cat__run())





